/*
 * @Author: [you name]
 * @Date: 2021-11-03 15:41:51
 * @LastEditors: [you name]
 * @LastEditTime: 2021-11-03 15:51:44
 * @Description: 
 */
import request from '@/utils/request'
export default {
    namespaced: true,
    state() {
        return {
            usersData: []
        }
    },
    mutations: {
        SET_USERSDATA(state, payload) {
            state.usersData = payload
        }
    },
    actions: {
        async pageQueryUsers({ commit}, params) {
            let res = await request.get('/baseUser/pageQuery', {
                params
            })
            // 提交突变
            commit('SET_USERSDATA', res.data)
        }
    }
}